package com.zbkj.crmeb.order.request;

import java.io.Serializable;
import java.math.BigDecimal;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class TmallOrderInfoRequest implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @ApiModelProperty(value = "商品id")
    private Integer productId;
    @ApiModelProperty(value = "商品数量")
    private Integer cartNum;
    @ApiModelProperty(value = "商品详情")
    private Product productInfo;
    @ApiModelProperty(value = "配送方式 1=快递 ，2=门店自提")
    private Integer shippingType;
    @ApiModelProperty(value = "成本价")
    private BigDecimal cost;

    @Data
    public static class Product{
        @ApiModelProperty(value = "市场价")
        private BigDecimal otPrice;
        @ApiModelProperty(value = "支付金额")
        private BigDecimal price;
        @ApiModelProperty(value = "商品名称")
        private String storeName;
        @ApiModelProperty(value = "商品编码")
        private String barCode;
        @ApiModelProperty(value = "发货模板")
        private Integer tempId;
        @ApiModelProperty(value = "参数模板")
        private AttrInfo attrInfo;
        @ApiModelProperty(value = "货号")
        private String keyword;
        @ApiModelProperty(value = "图片")
        private String image;

        @Data
        public static class AttrInfo{
            @ApiModelProperty(value = "规格")
            private String suk;
            @ApiModelProperty(value = "商品编码")
            private String barCode;
            @ApiModelProperty(value = "支付金额")
            private BigDecimal price;
            @ApiModelProperty(value = "sku_id")
            private String sourceSkuId;

        }
    }


}
